#ifndef __TOYM__BASE__CURRECT_PROCESS_H__
#define __TOYM__BASE__CURRECT_PROCESS_H__

#include <unistd.h>

namespace toym {

struct CurrectProcess {
public:
    static 
    pid_t getPid() {
        return ::getpid();
    }

    static
    const char* getPidStr();

private:
    static char s_pidStr[12];
    static const char* s_pPidStr;

};

} // namespace toym

#endif //__TOYM__BASE__CURRECT_PROCESS_H__